package com.chinasoft;

import com.chinasoft.config.SpringConfig;
import com.chinasoft.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        AccountService accountService = (AccountService)ctx.getBean("accountService");
        accountService.transfer("lilei","hmm",200.0);
    }
}